package com.itheima.service;

import com.itheima.common.entity.PageResult;
import com.itheima.common.entity.QueryPageBean;
import com.itheima.common.entity.Result;
import com.itheima.pojo.OrderFindPageResult;
import com.itheima.pojo.OrderInformation;
import com.itheima.pojo.OrderUpdateRequestBody;
import com.itheima.pojo.SubmitOrder;

public interface OrderService {

    PageResult findPage(QueryPageBean queryPageBean);

    void update(OrderUpdateRequestBody orderUpdateRequestBody);

    /**
     * 根据id查询预约信息
     * @param id
     * @return
     */
    OrderInformation findById(Integer id);

    /**
     * 提交预约
     * @param submitOrder
     */
    Result submitOrder(SubmitOrder submitOrder);
}
